package server;

import java.net.Socket;

public class Participant {
	private String name;
	private Socket socket;
	private int score;

	public Participant(String name, Socket socket) {
		this.name = name;
		this.socket = socket;
		score = 0;
	}

	public String getName() {
		return name;
	}

	public Socket getSocket() {
		return socket;
	}

	public boolean equals(Participant p) {
		return name.equals(p.getName());
	}

	public void addScore(int i) {
		score += i;
	}

	public int getScore() {
		return score;
	}

	public void resetScore() {
		score = 0;
	}

	public void setName(String name) {
		this.name = name;
	}
}
